using UnityEngine;
using System.Collections.Generic;

public class ButterflyCollisionManager
{
    private IList<ButterflyCollision> collisions;

    public ButterflyCollisionManager()
    {
        collisions = new List<ButterflyCollision>();
    }

    public void add(ButterflyCollision collision)
    {
        collisions.Add(collision);
    }

    public bool hasCollidedWith(Collider otherCollider)
    {
        bool result = false;

        foreach (ButterflyCollision each in collisions)
        {
            if (each.hasCollidedWith(otherCollider))
                result = true;
        }

        return result;
    }       
}
